package com.loit.loitcommon.utils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author zhaokz
 * @date 2022/5/23
 */
public class TreeBo<T> implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 1L;
    private T model;
    private List<TreeBo<T>> children;

    public T getModel() {
        return model;
    }

    public void setModel(T model) {
        this.model = model;
    }

    public List<TreeBo<T>> getChildren() {
        return children;
    }

    public void setChildren(List<TreeBo<T>> children) {
        if (this.children == null) {
            this.children = new ArrayList<TreeBo<T>>();
        }
        this.children = children;

    }
}
